-- Secret unit *creepy music*
local unitName = "greenman"

local unitDef =
{
-- Internal settings	
	Category = "LAND",
	ObjectName = "greenman.s3o",
	script = "greenman.lua",
	buildPic = "lz.png",
	hideDamage = true,
	showPlayerName = false,
	capturable = false,
	iconType = "corcommander",
-- Unit limitations and properties
	Description = "The Green Man",
	MaxDamage = 10000,
	Name = "Green Man",
	RadarDistance = 10,
	SightDistance = 400,	
	Upright = 1,	
	levelground = 1,
	idleAutoHeal = 1,
	commander = true,
	--cost
	buildCostMetal = 200,
	buildCostEnergy = 0,
	buildTime = 25,
	--economy	
	EnergyStorage = 1000,
	EnergyUse = 0,
	MetalStorage = 1000,
	EnergyMake = 100, 
	MakesMetal = 0, 
	MetalMake = 5,	
-- Movement and related
Acceleration = 3.0,
MaxVelocity = 3.0,
BrakeRate = 3.0,
FootprintX = 2,
FootprintZ = 2,
MovementClass = "Default2x2",
TurnRate = 900,
MaxSlope = 10,
turnInPlace = true,	
--Cando
canMove = true,
canAttack = true,
canFight = true,
canPatrol = true,
canGuard = true,
canRepeat = true,
canSelfDestruct = true,
canRestore = true,
canRepair = true,
canReclaim = true,
canResurrect = true,
canCapture = true,
canAssist = true,
canBeAssisted = true,
canSelfRepair = true,	

-- Building	
	Builder = true,
    Reclaimable = true,
	ShowNanoSpray = true,
	buildDistance = 300.0,
	buildRange3D = true,
	workerTime = 1,
	repairSpeed = 1,
	reclaimSpeed = 100,
	resurrectSpeed = 1,
	captureSpeed = 2,
	terraformSpeed = 1,
	
	weapons = {
    [1]={name  = "DCLAW1",
	  --onlyTargetCategory = [[LAND]],
	},
},
}

return lowerkeys({ [unitName] = unitDef })
